package Service;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.WebFault;

@WebService(name="message", targetNamespace="http://localhost:8080/message")
@WebFault(name="erreur-message", targetNamespace="http://localhost:8080/message/erreur")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
public class Service {

	public static int nbInvoc = 0;
	
	@WebMethod(operationName="sayHello")
	@WebResult(name="printHello")
	public String sayHello (String name) { 
		return "Bonjour"+name; 
	}
}
